<template>
  <div>
    <div class="outer">
      <div class="inner">
        <div class="search">
          <input
            type="text"
            class="int"
            placeholder="搜索商品，共145635款好物"
          />
        </div>
        <div class="category">
          <NavBar></NavBar>
          <div class="goods">
            <div class="topImg">
              <img
                class="img"
                src="@/asset/category/1679558973e8f3ba.webp"
                alt=""
              />
            </div>
            <div class="title">
              为你推荐
              <hr />
            </div>
            <ul class="goodsList">
              <li class="gooditem">
                <img
                  class="imga"
                  src="@/asset/category/076a28810809721a782d4de715624f37.webp"
                  alt=""
                />
                <span>换季清仓</span>
              </li>
              <li class="gooditem">
                <img
                  class="imga"
                  src="@/asset/category/076a28810809721a782d4de715624f37.webp"
                  alt=""
                />
                <span>换季清仓</span>
              </li>
              <li class="gooditem">
                <img
                  class="imga"
                  src="@/asset/category/076a28810809721a782d4de715624f37.webp"
                  alt=""
                />
                <span>换季清仓</span>
              </li>
              <li class="gooditem">
                <img
                  class="imga"
                  src="@/asset/category/076a28810809721a782d4de715624f37.webp"
                  alt=""
                />
                <span class="name">换季清仓</span>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <TabBar></TabBar>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'Category',
})
</script>

<script lang="ts" setup>
import TabBar from '@/components/TabBar/index.vue'
import NavBar from '@/components/NavBar/index.vue'
</script>

<style scoped lang="scss">
:deep(.van-sidebar-item) {
  padding: 10px;
}
:deep(.van-sidebar-item--select)::before {
  background-color: #ab2b2b;
}
.outer {
  width: 375px;
  height: 667px;
  padding-bottom: 70px;
  .inner {
    .search {
      width: 375px;
      height: 34px;
      line-height: 34px;
      padding: 5px 10px;
      border-bottom: 1px solid #d9d9d9;
      .int {
        width: 345px;
        height: 28px;
        border-radius: 5px;
        border: transparent;
        background-color: #ededed;
      }
      ::-webkit-input-placeholder {
        color: #666 !important;
        text-align: center;
      }
    }
    .category {
      width: 81px;
      display: flex;
      height: calc(100vh);
      border-right: 1px solid #d9d9d9;
      // .navbar {
      //   width: 81px;
      //   height: 100%;
      //   .navList {
      //     width: 81px;
      //   }
      // }
      .goods {
        width: 264px;
        .topImg {
          width: 264px;
          height: 96px;
          padding: 20px;
          .img {
            width: 264px;
            height: 96px;
          }
        }
        .title {
          width: 264px;
          height: 26px;
          font-size: 12px;
          font-weight: bold;
          padding: 0px 20px;
        }
        .goodsList {
          width: 264px;
          height: 324px;
          display: flex;
          flex-wrap: wrap;
          padding: 20px;
          justify-content: space-around;
          align-content: start;
          .gooditem {
            width: 72px;
            height: 108px;
            margin-bottom: 20px;
            .imga {
              width: 72px;
              height: 72px;
            }
            .name {
              display: inline-block;
              width: 72px;
              height: 36px;
            }
          }
        }
      }
    }
  }
}
</style>
